package com.campusflea.person;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.campusflea.R;

import static com.campusflea.R.mipmap.c1;

/**
 * Created by Administrator on 2017/6/17.
 */

public class TypeTwoViewHolder extends TypeAbstractViewHolder{

    private TextView name;
    private TextView price;
    public TextView content;

    public TypeTwoViewHolder(View itemView) {
        super(itemView);
        avatar= (ImageView) itemView.findViewById(R.id.avatar);
        name= (TextView) itemView.findViewById(R.id.name);
        price= (TextView) itemView.findViewById(R.id.price);
        content= (TextView) itemView.findViewById(R.id.content);
    }
    @Override
    public void binHolder(DataModel model)
    {
//        avatar.setBackgroundColor(model.avatarColor);


        name.setText(model.name);
        price.setText(model.price);
        content.setText(model.content);
    }

}
